package app.cms.machining;

import java.sql.Connection;

import org.limp.basework.MachiningException;
import org.limp.basework.SimpleBean;
import org.limp.basework.SimpleBeanMachining;
import org.limp.basework.Table;
import org.limp.basework.impl.CommonBean4HSQ;
import org.limp.mine.DateTrimmer;

public class CategoryMachining implements SimpleBeanMachining {

	public SimpleBean machining(SimpleBean bean, Table table,
			CommonBean4HSQ cbh, Connection conn, int type)
			throws MachiningException {
		// TODO Auto-generated method stub
		if (type == -1) {
			bean.getResource().put("D_DATE", DateTrimmer.getYMDHMS());
		} else if (type == -2) {
			bean.getResource().put("D_DATE", DateTrimmer.getYMDHMS());
		}
		return null;
	}

}
